RichTextBox for WinRT
GetPositionAtOffset(Int32,Predicate<Tag>) Method


The offset.
A predicate that can be called to check if a Tag should count as offset. The predicate should return true iff the tag doesn't count. Can be null, which means no filter.
Returns the position at an offset of the current position, optionally not counting some positions.
Syntax
'Declaration
 
Public Overloads Function GetPositionAtOffset( _
   ByVal offset As System.Integer, _
   ByVal tagFilter As System.Predicate(Of Tag) _
) As C1TextPointer
'Usage
 
Dim instance As C1TextPointer
Dim offset As System.Integer
Dim tagFilter As System.Predicate(Of Tag)
Dim value As C1TextPointer
 
value = instance.GetPositionAtOffset(offset, tagFilter)
public C1TextPointer GetPositionAtOffset( 
   System.int offset,
   System.Predicate<Tag> tagFilter
)

Parameters

offset
The offset.
tagFilter
A predicate that can be called to check if a Tag should count as offset. The predicate should return true iff the tag doesn't count. Can be null, which means no filter.

Return Value

A new position at the offset indicated, or null if the offset goes off the document.
Remarks

This method can be used to linearly traverse a C1Document tree.

Start and end tags in each C1TextElement count as items for the traverse, for instance if the position is in an element with children, a position at offset 1 will be the C1TextElement.ContentStart of the C1TextElement where this C1TextPointer is positioned.

If this C1TextPointer is positioned in a C1Run then it traverses the text of the C1Run.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1TextPointer Class
C1TextPointer Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback